package com.anxin.bean;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository
@Scope("prototype")
@SuppressWarnings("serial")
public class Department implements java.io.Serializable {
	// Fields
	private int id;    //* 类型id，自增主键. *
	private String name;    //* 部门名称. *
	private String dept_code;    //* 部门代码 *
	private int parentid;       //* 上级部门.父部门id *
	private Department parentdept; //* 上级部门 *
	private int areaid;     //* 所在区域.参数id *
	private Type parmarea;     //* 所在区域.参数id *
	private String dept_desc;    //* 部门描述. *

	// Constructors
	/** default constructor */
    public Department(){}
	/** full constructor */
    public Department(String name,String dept_code,Department parentdept,String dept_desc,Type parmarea){
    	this.name=name;
    	this.dept_code=dept_code;
    	this.dept_desc=dept_desc;
    	this.parentdept=parentdept;
    	this.parmarea=parmarea;
    }


	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDept_code() {
		return dept_code;
	}
	public void setDept_code(String dept_code) {
		this.dept_code = dept_code;
	}
	public int getParentid() {
		return parentid;
	}
	public void setParentid(int parentid) {
		this.parentid = parentid;
	}
	public Department getParentdept() {
		return parentdept;
	}
	public void setParentdept(Department parentdept) {
		this.parentdept = parentdept;
	}
	public int getAreaid() {
		return areaid;
	}
	public void setAreaid(int areaid) {
		this.areaid = areaid;
	}
	public Type getParmarea() {
		return parmarea;
	}
	public void setParmarea(Type parmarea) {
		this.parmarea = parmarea;
	}
	public String getDept_desc() {
		return dept_desc;
	}
	public void setDept_desc(String dept_desc) {
		this.dept_desc = dept_desc;
	}




}
